var express = require("express");
var router = express.Router();
const reserve = require("./controller/reserveationList_wxq");
const miniweb = require("./controller/miniApp_wxq");
const upload = require("../utils/upload");
/**,
 * @swagger
 * /setreserve:
 *    get:
 *      tags:
 *      - 测试
 *      summary: 患者预约单查询
 *      produces:
 *      - application/json
 *      parameters:
 *      - name: page
 *        in: query
 *        description: 页码
 *        required: false
 *        type: number
 *
 *      - name: key
 *        in: query
 *        description: 关键字
 *        required: false
 *        type: string
 *
 *      responses:
 *        200:
 *          description: {code:200,msg:查询成功,data:data}
 *
 *
 * */
router.get("/setreserve", reserve.setreserveation);
router.get("/setDesk", reserve.setDesk);
router.get("/setScheduling", reserve.setScheduling);
router.get("/setDocterDate", reserve.setDocterDate);
router.post("/amendWork", reserve.amendWork); //医生修改排班
router.post("/addWork", reserve.addWork); //医生增加排班
router.post("/login", reserve.login); //登录
router.post("/amendServeation", reserve.amendServeation); //改变就诊状态
router.get("/setuserList", miniweb.setuserList); //查询就诊卡绑定的用户
router.get("/setkeshi", miniweb.setkeshi); //查询一级科室
router.get("/seterkeshi", miniweb.seterkeshi); //查询二级科室
router.get("/seterkeshiDoctor", miniweb.seterkeshiDoctor); //查询单个科室所有医生
router.get("/setDoctorPaiban", miniweb.setDoctorPaiban); //查询医生排班及推荐医生
router.post("/addJzhz", miniweb.addJzhz); //增加患者就医表
module.exports = router;
